package 其他.获取字符串中最小的数字;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        if (s.isEmpty())
            return;
        int max=s.charAt(0);
        int index=0;
        for (int i = 1; i < s.length(); i++) {
            if (s.charAt(i)<max){
                max=s.charAt(i);
                index=i;
            }
        }
        System.out.println(s.substring(0,index+1)+"A"+s.substring(index+1));
    }
}
